import request from '@/utils/request'

//列表
export function transferList(params) {
  return request({
    url: '/auth-transfer/index',
    method: 'get',
    params
  })
}
//手动执行任务
export function transferRun(data) {
  return request({
    url: '/auth-transfer/exec',
    method: 'post',
    data
  })
}
//删除
export function transferDel(data) {
  return request({
    url: '/auth-transfer/delete',
    method: 'post',
    data
  })
}

//新增权限转移
export function transferAdd(data) {
  return request({
    url: '/auth-transfer/create',
    method: 'post',
    data
  })
}
//编辑权限转移
export function transferEdit(data) {
  return request({
    url: '/auth-transfer/update',
    method: 'post',
    data
  })
}

//获取权限转移详情
export function transferDetail(params) {
  return request({
    url: '/auth-transfer/detail',
    method: 'get',
    params
  })
}

//权限转移日志
export function transferLog(params) {
  return request({
    url: '/auth-transfer/log',
    method: 'get',
    params
  })
}